package com.xmtlxx.web.controller.wms.service;

import com.xmtlxx.common.core.domain.PageQuery;
import com.xmtlxx.common.core.page.TableDataInfo;
import com.xmtlxx.wms.domain.bo.InventoryPlanBo;
import com.xmtlxx.wms.domain.bo.InventoryPlanDeleteBo;
import com.xmtlxx.wms.domain.bo.InventoryPlanProExportBo;
import com.xmtlxx.wms.domain.vo.InventoryDtlVo;
import com.xmtlxx.wms.domain.vo.InventoryPlanProExportVo;
import com.xmtlxx.wms.domain.vo.InventoryPlanStatisticsExportVo;
import com.xmtlxx.wms.domain.vo.InventoryPlanVo;

import java.util.Collection;
import java.util.List;

/**
 * 盘点计划Service接口
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
public interface IInventoryPlanService {

    /**
     * 查询盘点计划
     *
     * @param id 盘点计划主键
     * @return 盘点计划
     */
    InventoryPlanVo queryById(String id);

    /**
     * 查询盘点计划列表
     *
     * @param bo 盘点计划
     * @return 盘点计划集合
     */
    TableDataInfo<InventoryPlanVo> queryPageList(InventoryPlanBo bo, PageQuery pageQuery);

    /**
     * 查询盘点计划列表
     *
     * @param bo 盘点计划
     * @return 盘点计划集合
     */
    List<InventoryPlanVo> queryList(InventoryPlanBo bo);

    /**
     * 修改盘点计划
     *
     * @param bo 盘点计划
     * @return 结果
     */
    InventoryPlanVo insertByBo(InventoryPlanBo bo);

    /**
     * 修改盘点计划
     *
     * @param bo 盘点计划
     * @return 结果
     */
    Boolean updateByBo(InventoryPlanBo bo);

    Boolean updateStatusByBo(InventoryPlanBo bo);

    /**
     * 校验并批量删除盘点计划信息
     *
     * @param ids 需要删除的盘点计划主键集合
     * @param isValid 是否校验,true-删除前校验,false-不校验
     * @return 结果
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    InventoryPlanVo initBeanByBoxNo(String boxNo);

    List<InventoryDtlVo> queryPlanProList(String id);

    List<InventoryPlanProExportVo> getInventoryPlanExportList(InventoryPlanProExportBo bo);

    List<InventoryPlanStatisticsExportVo> getInventoryPlanStatisticsExportList(InventoryPlanProExportBo bo);

    Boolean deletePlanProByPnos(InventoryPlanDeleteBo bo);
}
